package io.itit.ecp.admin.common.enums;

import io.itit.grass.common.enums.IBaseEnum;

import java.io.Serializable;

public enum UnitEnums implements IBaseEnum {

    kgCO2("kgCO2", "碳排放"),
    kWh("kWh", "千瓦时"),
    kW("kW", "千瓦"),
    m2("m²", "平方"),
    m3("m³", "立方"),
    t("t", "吨"),
    per("%", "百分比"),
    kgCO2m2("kgCO2/m²", "碳排放强度"),
    kgce("kgce", "标准煤");

    public final String unit;
    public final String desc;

    UnitEnums(String unit, String desc) {
        this.unit = unit;
        this.desc = desc;
    }

    @Override
    public Serializable getValue() {
        return unit;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}

